package com.xingkeduo.gateway.authority.pojo;

/**
 * 验证码对象类
 * 
 * @author GJ
 * @time 2019年3月27日 下午9:53:22
 * @description
 */
public class VerifyCode
{
	public enum Type
	{
		LOGIN(1), MODIFYPW(2);

		private int value;

		private Type(int value)
		{
			this.value = value;
		}

		public static Type contains(int value)
		{
			switch(value)
			{
				case 1:
					return LOGIN;
				case 2:
					return MODIFYPW;
				default:
					return null;
			}
		}

		public int getValue()
		{
			return value;
		}

		public void setValue(int value)
		{
			this.value = value;
		}
	}

	private String phone;
	private String code;// 验证码
	private Type type;

	public String getPhone()
	{
		return phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public Type getType()
	{
		return type;
	}

	public void setType(Type type)
	{
		this.type = type;
	}
}
